home *** CD-ROM | disk | FTP | other *** search
- //: C20:NoisyMap.cpp
- // From Thinking in C++, 2nd Edition
- // Available at http://www.BruceEckel.com
- // (c) Bruce Eckel 1999
- // Copyright notice in Copyright.txt
- // Mapping Noisy to Noisy
- #include "Noisy.h"
- #include <map>
- using namespace std;
-
- int main() {
- map<Noisy, Noisy> mnn;
- Noisy n1, n2;
- cout << "\n--------\n";
- mnn[n1] = n2;
- cout << "\n--------\n";
- cout << mnn[n1] << endl;
- cout << "\n--------\n";
- } ///:~
-